package com.itheima.map;

import java.util.Map;
import java.util.TreeMap;
import java.util.function.BiConsumer;

public class Demo05 {

    public static void main(String[] args) {
        Map<String ,String> map= new TreeMap<>();
        map.put("马蓉","宋喆");
        map.put("小璐","PGone");
        map.put("杨幂","凯威");
        map.put("某某某","凯威");

        map.forEach(new BiConsumer<String, String>() {
            @Override
            public void accept(String s, String s2) {
                System.out.println(s+"==="+s2);
            }
        });
        map.forEach((k,v)-> System.out.println(k+"@@@@"+v));
    }
}
